package com.hxxy.wyp.petsLover.starter;

import lombok.extern.log4j.Log4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.logging.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName EntryApplication
 * @Description 启动类
 * @Author wyp
 * @Date 2022/12/13 14:53
 * @Version 1.0
 */
@SpringBootApplication
@EnableAsync
@EnableTransactionManagement
@ComponentScan({"com.hxxy.wyp.petsLover"})
@Log4j
public class EntryApplication {
    private static final Log LOGGER = LogFactory.getLog(EntryApplication.class);
    public static void main(String[] args) {
        SpringApplication.run(EntryApplication.class, args);
        LOGGER.info("EntryApplication start");
    }
}
